from django.conf.urls import url
from myapp import views, spider_control

urlpatterns = [url(r'load_identify$', views.load_identify, ),
               url(r'load_gendar$', views.load_gendar, ),
               url(r'load_road$', views.load_road, ),
               url(r'load_explosion$', views.load_explosion, ),
               url(r'load_age$', views.load_age, ),
               url(r'load_heat$', views.load_heat, ),
               url(r'load_terminal$', views.load_terminal, ),
               url(r'load_map$', views.load_map, ),
               url(r'load_wordcloud$', views.load_wordcloud, ),
               url(r'load_detail$', views.load_detail, ),
               url(r'load_participant$', views.load_participant, ), ]

# 爬虫控制接口
spiderurls = [url(r'schedulelist$', spider_control.schedulelist, ),
              url(r'start_news$', spider_control.start_news, ),
              url(r'cancel_all$', spider_control.cancel_all, ),
              url(r'get_cur_top_words$', spider_control.get_cur_top_words, ),
              url(r'start_weibo$', spider_control.start_weibo, ),
              url(r'get_cur_weibo$', spider_control.get_cur_weibo, ),
              url(r'get_cur_news$', spider_control.get_cur_news, ),
              url(r'start_sina_163$', spider_control.start_sina_163, ),]
